const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
    .BundleAnalyzerPlugin;


// vue-cli配置文件

module.exports = {
    devServer: {
        proxy: {
            "/api": {//凡是请求/api的都到target这个接口
                target: "http://www.my-projrct.com"
            }
        }
    },
    configureWebpack: require('./webpack.config.js'),
    publicPath: process.env.NODE_ENV === 'production'
        ? '/my-blog'
        : '/'
    ,
    productionSourceMap: false,
}